  const dateFormat = function (value) {
    let date = new Date(value)
  let y = date.getFullYear()
  let m = date.getMonth() + 1
  m = m >= 10 ? m: "0"+ m
  let d = date.getDate()
  d = d >= 10 ? d: "0"+ d
  return y+"-" + m + "-" + d
}
module.exports = {
  dateFormat
}